Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci] Show sharees as avatars #5758

Merged
merged 21 commits into from
Sep 7, 2021

Conversation

lookacat
Copy link
Contributor

@lookacat lookacat commented Aug 31, 2021

Description

See #5736

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Aug 31, 2021

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@lookacat lookacat force-pushed the show-sharees-as-avatar-group branch from 2444c2a to 679b2ca Compare August 31, 2021 15:01
@ownclouders
Copy link
Contributor

Results for oC10iPhoneNotifications https://drone.owncloud.com/owncloud/web/18746/44/1
💥 The acceptance tests pipeline failed. The build has been cancelled.

@lookacat lookacat changed the title Show sharees as avatars [full-ci] Show sharees as avatars Sep 1, 2021
@lookacat lookacat force-pushed the show-sharees-as-avatar-group branch from 89a1fa6 to 2e90b87 Compare September 1, 2021 14:33
@ownclouders
Copy link
Contributor

Results for oC10SharingInternalGroupsSharingIndicator https://drone.owncloud.com/owncloud/web/18768/24/1
The following scenarios passed on retry:

  • webUISharingInternalGroupsToRootSharingIndicator/shareWithGroups.feature:104

@ownclouders
Copy link
Contributor

Results for oC10IntegrationApp1 https://drone.owncloud.com/owncloud/web/18768/65/1
The following scenarios passed on retry:

  • webUIDeleteFilesFolders/deleteFilesFolders.feature:59

@ownclouders
Copy link
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/18768/40/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:356

@pascalwengerter pascalwengerter changed the base branch from master to 02092021_bump-ods-10.0.0 September 2, 2021 19:18
@pascalwengerter
Copy link
Contributor

pascalwengerter commented Sep 2, 2021

@paulcod3 I changed the merge target branch, please rebase on #5770 (motivation for this is outlined there). You can then use the ODS 10.0.0, including the new avatars-component

Also, please squash on merge 😉

@pascalwengerter pascalwengerter force-pushed the 02092021_bump-ods-10.0.0 branch from bc62c4f to e90131c Compare September 3, 2021 10:24
>
<li v-for="collaborator in collaborators" :key="collaborator.key">
<h2 class="shared-with-label" v-text="sharedWithLabel" />
<oc-avatars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clue how the CI got that green if you're referencing a component the current version of ODS doesn't even know about 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that is true lol

@lookacat lookacat force-pushed the 02092021_bump-ods-10.0.0 branch from e90131c to 144706c Compare September 6, 2021 07:38
@lookacat lookacat marked this pull request as ready for review September 6, 2021 08:17
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid there's some stuff that doesn't work with this solution, sorry.

  • the click handler on the div only works for mouse users. that's not accessible and not keyboard power user compatible.
  • there is no way of closing the people list again
  • I'd expect the avatars to be invisible when the list is expanded

I think for accessibility reasons the OcAvatars component needs to have a type prop to distinguish if it's a presentational element or an interactive element. If it's interactive it needs to be an oc-button with appearance="raw" so that it's focusable and usable with both keyboard and mouse. Needs another PR in ODS, sorry :-(

collaborators_avatar() {
const result = []
console.log(this.collaborators)
this.collaborators.forEach(c => result.push({ ...c.collaborator, shareType: c.shareType }))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of building a result in a const, you can just

return this.collaborators.map(c => {
  ...c.collaborator,
  shareType:  c.shareType
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope the '...' doesnt work on map

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? The following works fine:

collaborators_avatar() {
      return this.collaborators.map(c => {
        return {
          ...c.collaborator,
          shareType: c.shareType
        }
      })
    },

Why is the computed prop name in snake case by the way? 🤔

@lookacat lookacat requested a review from kulmann September 6, 2021 13:17
@lookacat lookacat requested a review from kulmann September 7, 2021 07:27
@ownclouders
Copy link
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/18909/40/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:356

@ownclouders
Copy link
Contributor

Results for oC10Files1 https://drone.owncloud.com/owncloud/web/18909/12/1
The following scenarios passed on retry:

  • webUIFilesActionMenu/versions.feature:36

@lookacat lookacat force-pushed the show-sharees-as-avatar-group branch from aaa1231 to 3a529ab Compare September 7, 2021 10:08
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🚀

@pascalwengerter
Copy link
Contributor

Please squash on merge 😬

@ownclouders
Copy link
Contributor

Results for oC10SharingPublicManagement https://drone.owncloud.com/owncloud/web/18919/34/1
The following scenarios passed on retry:

  • webUISharingPublicManagement/publicLinkIndicator.feature:27

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2021

Please retry analysis of this Pull-Request directly on SonarCloud.

@lookacat lookacat merged commit 7dbbc0c into 02092021_bump-ods-10.0.0 Sep 7, 2021
@delete-merged-branch delete-merged-branch bot deleted the show-sharees-as-avatar-group branch September 7, 2021 10:45
pascalwengerter pushed a commit that referenced this pull request Sep 7, 2021
* WIP

* WIP

* fixed styling

* fixed open people panel

* fixed linting

* changed to RC ODS version

* hide shredwith label when no sharees

* remove dev leftover

* refactored raw button around ocavatars

* added closing mechanism

* removed copy pasta id

* addressed PR issues

* fixed PR issues

* fixed tooltip, alignment

* fixed PR issues

* removed aria-hidden

* fixed alignment
pascalwengerter pushed a commit that referenced this pull request Sep 8, 2021
* WIP

* WIP

* fixed styling

* fixed open people panel

* fixed linting

* changed to RC ODS version

* hide shredwith label when no sharees

* remove dev leftover

* refactored raw button around ocavatars

* added closing mechanism

* removed copy pasta id

* addressed PR issues

* fixed PR issues

* fixed tooltip, alignment

* fixed PR issues

* removed aria-hidden

* fixed alignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants